import React, { Component } from 'react';
import {Col,Row } from 'antd';

import './ConfigText.less';

export default class ConfigText extends Component {
    constructor(props) {
        super(props);
        this.state = {
            data:this.props.data
        };
    }
    render() {
        return (
            <div className="text-body">
                <Row className="row-body">
                    <Col className="child-title" span={24}>
                        <p>{this.state.data.title}</p>
                    </Col>
                    <Col className="child-content" span={24}>
                        <p>{this.state.data.content}</p>
                    </Col>
                </Row>
            </div>
        );
    }
}